package com.wan.swaggerdemo.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version 1.0
 * @Package: com.wan.swaggerdemo.config
 * @ClassName: OpenApiConfig
 * @Author: sgq
 * @Date: 2023/5/4 11:29
 * @Description: TODD
 */
@Configuration
public class OpenApiConfig {
    @Bean
    public OpenAPI api() {
        return new OpenAPI().info(new Info().title("Demo文档标题").description("常用接口定义方式示例").version("v1.0.0"));
    }
}